package com.stbu;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/myTest")
public class MyController {
    @GetMapping("/hello")
    public String sayHello(){
        return "welcome";
    }
    @GetMapping("/toParam")
    public String getParam(@RequestParam("u1") String u)
    {
       System.out.println("u1 param="+u);
       return "home";
    }
}
